import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const Logintype = 'Logintype' // d登录类型

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
export function getLogintype() {
  return Cookies.get(Logintype)
}

export function setLogintype(type) {
  return Cookies.set(Logintype, type)
}

export function removeLogintype() {
  return Cookies.remove(Logintype)
}
